#include "subs.h"

/*
Direction Type Address        Text              
--------- ---- -------        ----              
Up        p    .text:00D875CE call    sub_D87AE0
*/

HANDLE sub00007AE0 ( LPCWSTR lpFileName )
{
	log ( "[sub00007AE0] Detour." );

	char l_FileName[ MAX_PATH ] = { 0 };
	wcstombs ( l_FileName, lpFileName, MAX_PATH );

	log ( "[sub00007AE0] \tlpFileName %s", l_FileName );

	return CreateFileW ( lpFileName, 0xC0000000u, 0, 0, 2u, 0x80u, 0 );
}